package com.gxa.ssm251.pojo;




import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data  //get set tostring
@AllArgsConstructor  //全参构造
@NoArgsConstructor   //无参构造
@ApiModel(value = "Order订单对象")
public class Order implements Serializable {
    @ApiModelProperty(name = "id",value = "订单编号")
    private Integer id;
    @ApiModelProperty(name = "type",value = "订单类型")
    private String type;
    @ApiModelProperty(name = "userName",value = "订单人姓名")
    private String userName;
    @ApiModelProperty(name = "cityName",value = "城市")
    private String cityName;
    @ApiModelProperty(name = "origin",value = "订单来源")
    private String origin;
    @ApiModelProperty(name = "userPhone",value = "手机号")
    private String userPhone;
    @ApiModelProperty(name = "carNumber",value = "车牌号")
    private String carNumber;
    @ApiModelProperty(name = "carBringName",value = "接受司机")
    private String carBringName;
    @ApiModelProperty(name = "inBack",value = "是否还车")
    private Boolean inBack;
    @ApiModelProperty(name = "carBackName",value = "还车司机")
    private String carBackName;
    @ApiModelProperty(name = "status",value = "订单状态")
    private String status;
    @ApiModelProperty(name = "time",value = "订单时间")
//    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss")
    private Date time;
    @ApiModelProperty(name = "inPay",value = "是否支付")
    private Boolean inPay;
    @ApiModelProperty(name = "remark",value = "备注")
    private String remark;
    @ApiModelProperty(name = "address",value = "地址")
    private String address;

//    private List<Limit> limits;


}
